<?php

// system root path
define('SYSTEM_ROOT_PATH', realpath(dirname(__file__)));

// new define for system application path
define('SYSTEM_MODULE_PATH', SYSTEM_ROOT_PATH . '/module');

// root path
define('SYSTEM_AGILET_PATH', SYSTEM_ROOT_PATH . '/agilet');

// library path
define('SYSTEM_LIBRARY_PATH', SYSTEM_ROOT_PATH . '/library');

// library path
define('SYSTEM_TEMPLATE_PATH', SYSTEM_ROOT_PATH . '/template');

// define some functions.
include_once 'functions.php';

set_include_path(implode(PATH_SEPARATOR, array(
	SYSTEM_ROOT_PATH . '/agilet/class',
	SYSTEM_LIBRARY_PATH,
	//get_include_path()
)));

// include register path
include_once 'agilet/class/config.php';
include_once 'agilet/class/profiler.php';
include_once 'agilet/class/agilet.php';